from random import *

def template_directional_order(dir, all, rank):
    if randint(1, 2) == 1 and (rank == 1 or rank == all):
        pass